package com.rainflowerstone.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.rainflowerstone.home.components.TestFragment;

/**
 * @ Author     ：lwc
 * @ Date       ：Created in 18:43 2018/12/27
 * @ Description：${description}
 * @ Modified By：
 * @Version: $version$
 */
public class HomeScrollableTabAdapter extends FragmentPagerAdapter {

    public HomeScrollableTabAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        Fragment retFragment = null;
        switch (position) {
            case 0://推荐
                retFragment = new TestFragment();
                break;
            case 1:
                retFragment = new TestFragment();
                break;
            case 2:
                retFragment = new TestFragment();
                break;
            case 3:
                retFragment = new TestFragment();
                break;
            case 4:
                retFragment = new TestFragment();
                break;
            case 5:
                retFragment = new TestFragment();
                break;
            case 6:
                retFragment = new TestFragment();
                break;
            case 7:
                retFragment = new TestFragment();
                break;
            case 8:
                retFragment = new TestFragment();
                break;
            case 9:
                retFragment = new TestFragment();
                break;
        }
        return retFragment;
    }

    @Override
    public int getCount() {
        return 10;
    }
}
